/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package introse;

import java.util.GregorianCalendar;

public class purchasedProduct extends product {

    private int quantity;

    purchasedProduct(int productNumber, String productName, float price, boolean isGasul, boolean isActive, int quantity) {
        super(productNumber, productName, price, 0, 0, 0, isGasul, isActive, new GregorianCalendar().getTime());
        this.quantity = quantity;
    }
    
    public int getQuantity() {
        return this.quantity;
    }
    
    public float getTotalPrice(){
        return getQuantity() * getPrice();
    }
}
